﻿<!--#include file="const.inc"-->
<%
'====================================================================
' 感谢使用晴天3G智能建站系统..
' 作者:梁永强.QQ:766750857
' 官方网址:wap.qt3g.com
' 声明:软件版权归作者所有,没有经过作者本人同意不得非法破解和传播本程序
'====================================================================
%>         
<%

Set Rs = Server.CreateObject("Adodb.Recordset")

	dim rs,sql,i,name,act,page,bid,savauu,fansid
                bid=qingtian.nid
    		act = Request("act")
    		Page = Request("page")      '当前页数
    		If Page = "" Then Page = 1
   		If Not IsNumeric(Page) Then Page = 1
    		Page = CLng(Page)
    		If Page < 1 Then Page = 1

	if act="" then act=1
        if act=1 then
        fansid=Request.QueryString("fansid")
	if fansid="" then fansid=0
	if not isnumeric(fansid) then fansid=0
	fansid=clng(fansid)
        if fansid=0 then 
        savauu="" 
        else
        savauu="action=pay1&amp;fansid="&fansid&"&amp;"
        end if
        end if
select case v
case "0"
we0="<br/>"

hr="------------<br/>"
Randomize()
book="跳到第<input name='Page' format='*N' size='2' maxlength='5'/><anchor>页<go href='friendt.asp?act="&act&"&amp;sid="&sidd&"&amp;run="& Int((9999) * Rnd() + 1) &"' method='post'><postfield name=""Page"" value=""$(Page:n)"" /></go></anchor><br/>"
%>
<card title="交友大厅"><p align="<%=qingtian.px%>">
<%
case "1"
hr=""
zi="<span style=""color:#FF5500"">"
zi0="</span>"
we="<div class=""footer"">"
sou="<div class=""block4"">"
dao="<div class=""navi"">"
we0="</div>"
Randomize()
book=""&dao&"<form action=""friendt.asp?act="&act&"&amp;sid="&sidd&"&run="& Int((9999) * Rnd() + 1) &""" method=""post"">跳到第<input type=""text"" name=""Page"" value="""" format=""*N"" size=""2"" maxlength=""5""/><input type=""submit"" value=""页"" /></form>"&we0&""
%>
<title>交友大厅</title>
</head>
<body>
<!--#include virtual="/css.inc"-->
<%
End Select
%>		
<%



                if sid="Null" then
		%><%=dao%><%=zi%>欢迎你<%=zi0%><a href="/login.asp?sid=<%=sidd%>&amp;url=/user/friendt.asp?act=<%=act%>">注册/登陆</a><%=we0%><%
		else
		qingtian.info
		end if
%><%=qingtian.qingsav("109")%><%
		if act=1 then
Sql = "select [id],[zf],[xingbie],[nianlin],[touxian],[meili],[money],[tili],[renqi],[diqu] from [qingtian_user] where [xingbie]=""女"" order by zf desc"
		%><%=dao%>==交友大厅==<%=we0%><%=sou%><%=zi%>美女<%=zi0%>.<a href="friendt.asp?act=2&amp;sid=<%=sidd%>"><%=zi%>帅哥<%=zi0%></a><%=we0%><%
		elseif act=2 then
Sql = "select [id],[zf],[xingbie],[nianlin],[touxian],[meili],[money],[tili],[renqi],[diqu] from [qingtian_user] where [xingbie]=""男"" order by zf desc"
		%><%=dao%>==交友大厅==<%=we0%><%=sou%><%=zi%>帅哥<%=zi0%>.<a href="friendt.asp?act=1&amp;sid=<%=sidd%>"><%=zi%>美女<%=zi0%></a><%=we0%><%
                elseif act=3 then
Sql = "select [id],[zf],[xingbie],[nianlin],[touxian],[meili],[money],[tili],[renqi],[diqu] from [qingtian_user] order by zf desc"
		%><%=dao%>==积分排行榜==<%=we0%><%=sou%><a href="friendt.asp?act=4&amp;sid=<%=sidd%>"><%=zi%><%=qingtian.bi%><%=zi0%></a>.<a href="friendt.asp?act=5&amp;sid=<%=sidd%>"><%=zi%>魅力<%=zi0%></a>.<a href="friendt.asp?act=6&amp;sid=<%=sidd%>"><%=zi%>体力<%=zi0%></a>.<a href="friendt.asp?act=7&amp;sid=<%=sidd%>"><%=zi%>人气<%=zi0%></a><%=we0%><%
               elseif act=4 then
Sql = "select [id],[zf],[xingbie],[nianlin],[touxian],[meili],[money],[tili],[renqi],[diqu] from [qingtian_user] order by money desc"        
                %><%=dao%>==<%=qingtian.bi%>排行榜==<%=we0%><%=sou%><a href="friendt.asp?act=3&amp;sid=<%=sidd%>"><%=zi%>积分<%=zi0%></a>.<a href="friendt.asp?act=5&amp;sid=<%=sidd%>"><%=zi%>魅力<%=zi0%></a>.<a href="friendt.asp?act=6&amp;sid=<%=sidd%>"><%=zi%>体力<%=zi0%></a>.<a href="friendt.asp?act=7&amp;sid=<%=sidd%>"><%=zi%>人气<%=zi0%></a><%=we0%><%
               elseif act=5 then
Sql = "select [id],[zf],[xingbie],[nianlin],[touxian],[meili],[money],[tili],[renqi],[diqu] from [qingtian_user] order by meili desc"        
                %><%=dao%>==魅力排行榜==<%=we0%><%=sou%><a href="friendt.asp?act=4&amp;sid=<%=sidd%>"><%=zi%><%=qingtian.bi%><%=zi0%></a>.<a href="friendt.asp?act=3&amp;sid=<%=sidd%>"><%=zi%>积分<%=zi0%></a>.<a href="friendt.asp?act=6&amp;sid=<%=sidd%>"><%=zi%>体力<%=zi0%></a>.<a href="friendt.asp?act=7&amp;sid=<%=sidd%>"><%=zi%>人气<%=zi0%></a><%=we0%><%
               elseif act=6 then
Sql = "select [id],[zf],[xingbie],[nianlin],[touxian],[meili],[money],[tili],[renqi],[diqu] from [qingtian_user] order by tili desc"         
                %><%=dao%>==体力排行榜==<%=we0%><%=sou%><a href="friendt.asp?act=4&amp;sid=<%=sidd%>"><%=zi%><%=qingtian.bi%><%=zi0%></a>.<a href="friendt.asp?act=5&amp;sid=<%=sidd%>"><%=zi%>魅力<%=zi0%></a>.<a href="friendt.asp?act=3&amp;sid=<%=sidd%>"><%=zi%>积分<%=zi0%></a>.<a href="friendt.asp?act=7&amp;sid=<%=sidd%>"><%=zi%>人气<%=zi0%></a><%=we0%><%
               elseif act=7 then
Sql = "select [id],[zf],[xingbie],[nianlin],[touxian],[meili],[money],[tili],[renqi],[diqu] from [qingtian_user] order by renqi desc"         
                %><%=dao%>==人气排行榜==<%=we0%><%=sou%><a href="friendt.asp?act=4&amp;sid=<%=sidd%>"><%=zi%><%=qingtian.bi%><%=zi0%></a>.<a href="friendt.asp?act=5&amp;sid=<%=sidd%>"><%=zi%>魅力<%=zi0%></a>.<a href="friendt.asp?act=6&amp;sid=<%=sidd%>"><%=zi%>体力<%=zi0%></a>.<a href="friendt.asp?act=3&amp;sid=<%=sidd%>"><%=zi%>积分<%=zi0%></a><%=we0%><%
		end if
		Rs.Open Sql,conn,1,1
		if not (rs.bof and rs.eof)  then

				Rs.PageSize = 7	'一页N条记录
				IF Not IsEmpty(Page) Then
					IF Not IsNumeric(Page) Then		'判断Page是否为数字
						Page=1
					Else
						Page=Cint(Page)		'转换成短整形Integer
					End IF
					IF Page > Rs.PageCount Then
						Rs.AbsolutePage = Rs.PageCount	'设置当前显示页等于最后一页
					ElseIF Page <= 0 Then
						Rs.AbsolutePage = 1		'设置当前页等于第一页
					Else
						Rs.AbsolutePage = Page	'如果大于零,显示当前页等于接收的页数
					End IF
				Else
					Rs.AbsolutePage = 1
				End IF
				Page = Rs.AbsolutePage
		For i=1 to  Rs.PageSize
		If Rs.Eof Then
			exit For
		End If
dat=i+(page-1)*Rs.PageSize
dat1=dat mod 2
if dat1=0 then
Response.Write we
else
Response.Write sou
end if
%>
<img src="<%=rs("touxian")%>" alt='我的头像' noselect = "true" /><br/><%=hr%><span style="color:#FF0000">积分(<%=rs("zf")%>)</span>.<span style="color:#00FF00"><%=qingtian.bi%>(<%=rs("money")%>)</span>.<span style="color:#0000FF">魅力(<%=rs("meili")%>)</span>.<span style="color:#FFFF00">体力(<%=rs("tili")%>)</span>.<span style="color:#00FFFF">人气(<%=rs("renqi")%>)</span><br/><a href="spacev.Asp?nid=<%=rs("id")%>&amp;sid=<%=sidd%>&amp;urls=friendt.asp?act=<%=act%>"><%=qingtian.name(rs("id"))%></a><span style="color:#FF00FF">(<%=qingtian.onlina(rs("id"))%>)</span><br/><%=rs("xingbie")%>/<%=rs("nianlin")%>/<%=rs("diqu")%><br/><a href="addinfo.asp?bid=<%=rs("id")%>&amp;sid=<%=sidd%>&amp;urls=friendt.asp?act=<%=act%>">发消息</a>.<a href="addfans.asp?fansid=<%=rs("id")%>&amp;sid=<%=sidd%>&amp;urls=friendt.asp?act=<%=act%>">加好友</a><%=we0%>
<%
	 	Rs.MoveNext
	  	Next 
   		if rs.PageCount >1 then
     		    Response.Write sou
    		End If
    		If Page < rs.PageCount Then
    		    Response.Write("<a href='friendt.asp?act="&act&"&amp;page=" & Page + 1 & "&amp;sid="&sidd&"'>下一页</a>")
    		End If
       
    		If Page > 1 And Page < rs.PageCount Then
    		    Response.Write("|")
    		End If
        
    		If Page > 1 Then
    		    Response.Write("<a href='friendt.asp?act="&act&"&amp;page=" & Page - 1 & "&amp;sid="&sidd&"'>上一页</a>"&we0&"")
    		Elseif rs.PageCount >1 then
    		    Response.Write we0
    		End If
            
    		Randomize()
    
    		If rs.PageCount > 2 Then
    		    %>
		<%=book%>
		<%
    		End If
                if rs.PageCount >1 then
     		    Response.Write("" & dao & "[第"&Page&"/总"&rs.PageCount&"页/"&rs.RecordCount&"条]"&we0&"")
    		End If
		else
%>
<%=we%>暂无会员<%=we0%>
<%
		end if
		Rs.close


	set rs=nothing
%>
<%=hr%>
<%=qingtian.qingsav("200")%><%=sou%><a href="fans.asp?sid=<%=sidd%>">我的好友</a>|<a href="shangchen.asp?sid=<%=sidd%>">商场</a>|<a href="chuwu.asp?sid=<%=sidd%>">储物箱</a><%=we0%>
<%

end Function
%>
